package com.mihu.stmall.manager.service;


import com.github.pagehelper.PageInfo;

import com.mihu.stmall.manager.entiy.Goods;

import java.util.List;

//用于规定分类的相关操作
public interface GoodsService {

    //    添加
    int add(Goods goods) throws Exception;
    //    删除
    int remove(Integer id) throws Exception;
    //    修改
    int edit(Goods goods) throws Exception;
    //        查询
    Goods getById(Integer id) throws Exception;
    //搜索
    List<Goods> search(Goods goods);

    //分页搜索
    PageInfo searchByPage(Integer page, Integer limit, Goods goods);
}
